﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>学生后勤报修系统</title>
	<!-- Fav  Icon Link -->
	<link rel="shortcut icon" type="image/png" th:href="@{/images/fav.png}">
	<!-- Bootstrap core CSS -->
	<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
	<!-- themify icons CSS -->
	<link rel="stylesheet" th:href="@{/css/themify-icons.css}">
	<!-- Animations CSS -->
	<link rel="stylesheet" th:href="@{/css/animate.css}">
	<!-- Main CSS -->
	<link rel="stylesheet" th:href="@{/css/styles.css}">
	<link rel="stylesheet" th:href="@{/css/red.css}" id="style_theme">
	<link rel="stylesheet" th:href="@{/css/responsive.css}">
	<!-- morris charts -->
	<link rel="stylesheet" th:href="@{/charts/css/morris.css}">
	<!-- jvectormap -->
	<link rel="stylesheet" th:href="@{/css/jquery-jvectormap.css}">
	<link rel="stylesheet" th:href="@{/datatable/dataTables.bootstrap4.min.css}">

	<script th:src="@{/js/modernizr.min.js}"></script>
</head>

<body>
	<!-- Pre Loader -->
	<div class="loading">
		<div class="spinner">
			<div class="double-bounce1"></div>
			<div class="double-bounce2"></div>
		</div>
	</div>
	<!--/Pre Loader -->
	<!-- Color Changer -->
	<div class="theme-settings" id="switcher">
		<span class="theme-click">
			<span class="ti-settings"></span>
		</span>
		<span class="theme-color theme-default theme-active" data-color="red"></span>
		<span class="theme-color theme-blue" data-color="blue"></span>
		<span class="theme-color theme-red" data-color="red"></span>
		<span class="theme-color theme-violet" data-color="violet"></span>
		<span class="theme-color theme-yellow" data-color="yellow"></span>
	</div>
	<!-- /Color Changer -->
	<div class="wrapper">
		<!-- Page Content -->
		<div id="content">
				<!-- Top Navigation -->
				<div class="container top-brand">
					<nav class="navbar navbar-default">			
						<div class="navbar-header">
							<div class="sidebar-header"> <a th:href="@{/index.html}"><img th:src="@{/images/logo-dark.png}" class="logo" alt="logo"></a></div>
						</div>
						<ul class="nav justify-content-end">
							<li class="nav-item">
								<a class="nav-link dropdown-toggle" data-toggle="dropdown" th:href="@{/#}" role="button" aria-haspopup="true"
								 aria-expanded="false">
									<span class="ti-user"></span>
								</a>
								<div class="dropdown-menu lochana-box-shadow2 profile animated flipInY">
									<h5>John Willing</h5>
									<a class="dropdown-item" th:href="@{/#}"><span class="ti-settings"></span> 退出登录</a>
								</div>
							</li>
						</ul>
				
					</nav>
				</div>
				<!-- /Top Navigation -->
				<!-- Menu -->
				<div th:replace="common::#repman-Menu"></div>
				<!-- /Menu -->
				<!-- Breadcrumb -->
				<!-- Page Title -->
				<div class="container mt-0">
					<div class="row breadcrumb-bar">
						<div class="col-md-6">
							<h3 class="block-title">报修列表
							</h3>
						</div>
						<div class="col-md-6">
							<ol class="breadcrumb">
								<li class="breadcrumb-item">
									<a th:href="@{/index.html}">
										<span class="ti-home"></span>
									</a>
								</li>
								<li class="breadcrumb-item">报修列表</li>
								<li class="breadcrumb-item active">详细</li>
							</ol>
						</div>
					</div>
				</div>
			<!-- /Page Title -->
			<!-- /Breadcrumb -->
			<!-- Main Content -->
			<div class="container">
				<div class="row">
					<!-- Widget Item -->
					<div class="col-md-12">
						<div class="widget-area-2 lochana-box-shadow">
							<h3 class="widget-title">详细</h3>
							<form>
								<div class="form-row">
									<div class="form-group col-md-6">
										<label for="name">报修人</label>
										<div class="form-control" id="name">
											[[${user.userName}]]
										</div>
									</div>
									<div class="form-group col-md-6">
										<label for="time">报修时间</label>
										<div class="form-control" id="time">
											<p th:text="${#dates.format(repair.getRepairsTime(),'yyyy-MM-dd')}"></p>
										</div>
									</div>
									<div class="form-group col-md-6">
										<label for="place">报修地点</label>
										<div class="form-control" id="place">
											<p th:text="${repair.getRepairsPlace()}"></p>
										</div>
									</div>
									<div class="form-group col-md-6">
										<label for="telephone">报修电话</label>
										<div class="form-control" id="telephone">
											<p th:text="${repair.getRepairsTelephone()}"></p>
										</div>
									</div>
									<div class="form-group col-md-6">
										<label for="photo">报修照片</label>
										<div class="form-control" id="photo">
											<img th:src="${repair.getRepairsPhoto()}" width="300px;" height="300px;">
										</div>
									</div>
									<div class="form-group col-md-6">
										<label for="detail">报修详情</label>
										<div class="form-control" id="detail">
											<p th:text="${repair.getRepairsDetail()}"></p>
										</div>
									</div>
<!--									<div class="form-group col-md-6">-->
<!--										<label  for="status">报修状态</label>-->
<!--										<div class="form-control" id="status">-->
<!--											<p th:switch="${repair.getRepairsStatus()}">-->
<!--												<p th:case="1">未处理 </p>-->
<!--												<p th:case="2">已派工 </p>-->
<!--												<p th:case="3">已完成</p>-->
<!--												<p th:case="4">已拒绝</p>-->
<!--											</p>-->
<!--										</div>-->
<!--									</div>-->
								</div>
								<div th:if="${repair.getRepairsStatus()==2}" class="form-group col-md-6 mb-3">
										<a th:href="@{/repman/submitrep/4/{repairsId}(repairsId=${repair.getRepairsId()})}"> <button type="button" class="btn btn-primary btn-lg" >不受理</button></a>
										<a th:href="@{/repman/submitrep/3/{repairsId}(repairsId=${repair.getRepairsId()})}"> <button type="button" class="btn btn-primary btn-lg" >已完工</button></a>
									</div>
								<div  class="form-group col-md-6 mb-3">
									<a th:if="${repair.getRepairsStatus()==3||repair.getRepairsStatus()==4}" th:href="@{/repman/checkrep/finish}"> <button type="button" class="btn btn-primary btn-lg" >返回</button></a>
								</div>

							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	<!--/Page Content -->
	</div>
	<!-- Back to Top -->
	<a id="back-to-top" th:href="@{/#}" class="back-to-top">
		<span class="ti-angle-up"></span>
	</a>
	<!-- /Back to Top -->
	<!-- Jquery Library-->
	<script th:src="@{/js/jquery-3.2.1.min.js}"></script>
	<!-- Popper Library-->
	<script th:src="@{/js/popper.min.js}"></script>
	<!-- Bootstrap Library-->
    <script th:src="@{/js/bootstrap.min.js}"></script>
    
    <!-- Datatable  -->
	<script th:src="@{/datatable/jquery.dataTables.min.js}"></script>
	<script th:src="@{/datatable/dataTables.bootstrap4.min.js}"></script>
    
	<!-- Custom Script-->
	<script th:src="@{/js/custom.js}"></script>

</body>

</html>